package com.bocai.service;

import com.bocai.bean.SysTabManager;
import com.bocai.bean.TSalesOutMoneyInfo;
import com.bocai.bean.TSalesUser;
import com.bocai.utils.ResponseData;

import java.util.List;
import java.util.Map;

public interface ISalesService {
    List<TSalesUser> selectSales(TSalesUser tSalesUser);

    TSalesUser selectSaleForPhone(String phone);

    int insertSale(TSalesUser tSalesUser);

    int updateSale(TSalesUser tSalesUser);

    int updateCheck(TSalesOutMoneyInfo moneyInfo);

    int updateBackMoney(TSalesOutMoneyInfo moneyInfo);

    int deleteSale(int salesId);

    List<Map<String, Object>> selectSalesList(TSalesUser salesUser);

    List<Map<String, Object>> selectSalesDetail(Integer userId);

    List<Map<String, Object>> selectSalesUserList(Map map);

    Map<String, Object> selectSalesDetails(Integer salesId);

    ResponseData loginSaleMethod(String phone, String pwd, ResponseData data);

    List<Map<String, Object>> selectOutMoney(Integer salesId);

    Map<String, Object> selectMoneys();

    TSalesOutMoneyInfo selectOutMoneyDetail(Integer putForwardId);
}
